package com.sunny.design.decorator.simple;

/**
 * 扩展类
 *
 * @author Sunny
 * @date 2020/1/12 下午4:06
 */
public class BatterCakeWithEgg extends BatterCake {

    @Override
    public String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 1;
    }
}
